﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fusion.Data.Contract
{
    public interface IEntityProvider
    {
        bool CreateEntityRecord(string type, List<MethodParameter> parameters);
        bool CreateEntity(string type, List<ColumnParameter> columnParameters);
        bool IsEntityExist(string type);
    }

    public enum ColumnType
    {
        INT = 0,
        STRING = 1,
        DATETIME = 2,
        MONEY = 3
    }

    public class ColumnParameter
    {
        public string ColumnName { get; set; }
        public ColumnType ColumnType { get; set; }
        public int ColumnLength { get; set; }
        public bool IsNullable { get; set; }
    }
}
